import request from '@/utils/request'

// 查询运营店铺配置列表
export function listOperationStoreConfig(query) {
  return request({
    url: '/business/operationStoreConfig/list',
    method: 'get',
    params: query
  })
}

// 查询运营店铺配置详细
export function getOperationStoreConfig(id) {
  return request({
    url: '/business/operationStoreConfig/' + id,
    method: 'get'
  })
}

// 新增运营店铺配置
export function addOperationStoreConfig(data) {
  return request({
    url: '/business/operationStoreConfig',
    method: 'post',
    data: data
  })
}

// 修改运营店铺配置
export function updateOperationStoreConfig(data) {
  return request({
    url: '/business/operationStoreConfig',
    method: 'put',
    data: data
  })
}

// 删除运营店铺配置
export function delOperationStoreConfig(id) {
  return request({
    url: '/business/operationStoreConfig/' + id,
    method: 'delete'
  })
}

// 导出文件
export function exportExcel(data){
  return request({
    url: '/business/operationStoreConfig/export',
    method: 'post',
    data: data
  })
}

// 根据类型查询运营店铺配置
export function getConfigByType(query) {
  return request({
    url: '/business/operationStoreConfig/getConfigByType',
    method: 'get',
    params: query
  })
}

// 根据类型查询运营店铺列表
export function getConfigDetailByType(query) {
  return request({
    url: '/business/operationStoreConfig/getConfigDetailByType',
    method: 'get',
    params: query
  })
}
